package com.beone.admin.form;

import com.beone.admin.entity.TaskAttachment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 任务表单
 * </p>
 *
 * @author Pagenny
 * @date 2019-05-18 16:32
 **/
@ApiModel("保存任务表单")
public class TaskForm {

    @ApiModelProperty(value = "id（修改时传入）", name = "id")
    private Integer id;
    @ApiModelProperty(value = "任务类型", name = "type")
    private Integer type;
    @ApiModelProperty(value = "任务描述", name = "descr")
    private String descr;
    @ApiModelProperty(value = "任务时间", name = "taskTime")
    private Date taskTime;
    @ApiModelProperty(value = "完成时间", name = "finishTime")
    private Date finishTime;
    @ApiModelProperty(value = "任务处理结果", name = "result")
    private String result;
    @ApiModelProperty(value = "地址", name = "address")
    private String address;
    @ApiModelProperty(value = "附件列表", name = "attachmentList")
    private List<TaskAttachmentForm> attachmentList;
    @ApiModelProperty(hidden = true)
    private Integer userId;
    @ApiModelProperty(value = "是否更改状态为已完成", name = "finishTag")
    private Boolean finishTag = false;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    public Date getTaskTime() {
        return taskTime;
    }

    public void setTaskTime(Date taskTime) {
        this.taskTime = taskTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public List<TaskAttachmentForm> getAttachmentList() {
        return attachmentList;
    }

    public void setAttachmentList(List<TaskAttachmentForm> attachmentList) {
        this.attachmentList = attachmentList;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Boolean getFinishTag() {
        return finishTag;
    }

    public void setFinishTag(Boolean finishTag) {
        this.finishTag = finishTag;
    }
}
